'use strict';

module.exports = {
  name: [
    { required: true, message: '角色名必填' },
    { type: 'string', message: '角色名必须为字符串' },
    { min: 0, max: 20, message: '角色名长度最大20字' },
  ],
  auth: [
    { type: 'string', message: '参数不正确' },
    { min: 0, max: 255, message: '参数不正确' },
  ],
  description: [
    { required: true, message: '角色描述必填' },
    { type: 'string', message: '角色描述必须为字符串' },
    { min: 0, max: 1000, message: '角色描述长度最大1000字' },
  ],
};
